<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>Title</title>
  <script src="${pageContext.request.contextPath}/static/js/jquery-3.4.1.js"></script>
  <script>
    $(function(){
      $("#btn").click(function (){
        $.post({
          url:"${pageContext.request.contextPath}/a1",
          data:{"pwd1":$("#pwd1").val(),"pwd2":$("#pwd2").val()},
          success:function (data){
            alert(data);
          }
        })
      })
    })
  </script>
</head>
<body>
  <p>
    密码1：<input type="text" id="pwd1">
  </p>
  <p>
    密码2：<input type="text" id="pwd2">
  </p>
  <p>
    <input type="submit" value="修改" id="btn">
  </p>
</body>
</html>
